<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
    /**
     * @author 谭湘元
     * @since 2009/04/23
     */
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb18030" />
<title>聋校备课与语言学习及矫治系统</title>
<fmt:setBundle basename="PathResource" scope="session" />
<link
	href="<%=request.getContextPath()%>/<fmt:message key='StylePath' />style.css"
	rel="stylesheet" type="text/css" />
<script language="javascript">
  function checkAll(checkBox){
  	var checkBoxs = document.getElementsByName("checkbox1");
  	if(checkBoxs){
		for(var i=0;i<checkBoxs.length;i++){
			checkBoxs[i].checked = checkBox.checked;
		}
  	}
  }
  function deleteSelects(){
	  if(confirm("确定要删除？")){
			var checkBoxs =	document.getElementsByName("checkbox1");
			var idString="";
			if(checkBoxs){
				for(var i=0;i<checkBoxs.length;i++){
					if(checkBoxs[i].checked){
						if(idString==""){
							idString+=checkBoxs[i].value;
						}else{
							idString+=","+checkBoxs[i].value;
						}
					}
				}
		  	}
		  	if(idString==""){
				alert("请先选择要删除的项。");
				return;
		  	}
		  	document.forms[0].action+="&operatorSign=delete&evaluateIds="+idString;
		  	document.forms[0].submit();
	  }
  }
</script>
</head>

<body class="bcolor">
<form id="form1" name="form1" method="post" action="evaluation.do?method=queryStudentEvaluationsForModify">
  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#a7c8e6">
    <tr>
      <td><table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" class="fontbot">
          <tr>
            <td width="12%" align="right" valign="middle" bgcolor="#FFFFFF">班 级：</td>
            <td width="10%" valign="middle" bgcolor="#FFFFFF">
            <select name="classID" class="boxcopy2" id="classID" style="width:210px;">
            	<option value="">全部</option>
				<c:forEach items="${classess}" var="clazz">
					<option value="<c:out value="${clazz.classId }" />" <c:if test="${param.classID==clazz.classId}">selected</c:if> >
						<c:out value="${clazz.grade }" /><c:out value="${clazz.classNumber}" />班
					</option>
			  	</c:forEach>
				<c:forEach items="${specialGroups}" var="clazz">
					<option value="<c:out value="${clazz.onlyClassId}" />" <c:if test="${param.classID==clazz.onlyClassId}">selected</c:if> >
						<c:out value="${clazz.name }" />
					</option>
			  	</c:forEach>
			</select></td>
			<td width="12%" align="right" valign="middle" bgcolor="#FFFFFF">姓 名：</td>
            <td width="10%" valign="middle" bgcolor="#FFFFFF">
            <input type="text" name="studentName" class="boxcopy2" style="width:200px;" value="<c:out value="${param.studentName }" />" />	
            </td>
            <td valign="middle" bgcolor="#FFFFFF"><a href="javascript:document.forms[0].submit();" onfocus="this.blur()"><img src="<%=request.getContextPath()%>/<fmt:message key='CommonImagePath' />gif-03.gif" width="53" height="22" border="0" /></a></td>
          </tr>
      </table></td>
    </tr>
  </table>
  <table cellspacing="0" cellpadding="0" width="99%" align="center" border="0">
    <tbody>
      <tr>
        <td width="7"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_01.gif" width="7" /></td>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_05.gif"><table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tbody>
              <tr>
                <td width="30"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_02.gif" width="30" /></td>
                <td align="left" width="200"  background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_03.gif">&nbsp;<strong> 矫 治 信 息 维 护</strong></td>
                <td width="59"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_04.gif" width="59" /></td>
                <td>&nbsp;</td>
              </tr>
            </tbody>
        </table></td>
        <td width="8"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_06.gif" width="8" /></td>
      </tr>
      <tr>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_07.gif"><img height="1" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />spacer.gif" width="1" /></td>
        <td bgcolor="#f7fbff"><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" bordercolorlight="#ffffff">
        <tr bgcolor="#CCDDF2">
          <td height="20" align="center"><strong>
            <input type="checkbox" name="checkbox8" id="checkbox8" onclick="checkAll(this);" />
            选择</strong></td>
          <td height="20" align="center"><strong>班 级</strong></td>
          <td height="20" align="center"><strong>学 生</strong></td>
		  <td height="20" align="center"><strong>矫治内容</strong></td>
          <td align="center"><strong>评价结果</strong></td>
        </tr>
		<c:forEach items="${pagenitionModel.resultItems}" var="item" varStatus="status">
	        <tr>
	          <td height="20" align="center" bgcolor="#FFFFFF"><input type="checkbox" name="checkbox1" value="<c:out value="${item.id }" />"/></td>
	          <td height="20" align="center" bgcolor="#FFFFFF">
				<c:if test="${item.classType==0}">
			  	<c:forEach items="${classess}" var="clazz">
			  		<c:if test="${clazz.classId==item.classId}">
			  			<c:out value="${clazz.grade }" /><c:out value="${clazz.classNumber}" />班
			  		</c:if>
			  	</c:forEach>
				</c:if>
				<c:if test="${item.classType==1}">
			  	<c:forEach items="${specialGroups}" var="clazz">
			  		<c:if test="${clazz.onlyClassId==item.classId}">
			  			<c:out value="${clazz.name }" />
			  		</c:if>
			  	</c:forEach>
				</c:if>
			  </td>
	          <td height="20" align="center" bgcolor="#FFFFFF"><c:out value="${item.studentName }" /></td>
			  <td height="20" align="center" bgcolor="#FFFFFF"><c:out value="${item.content }" /></td>
	          <td height="20" align="center" bgcolor="#FFFFFF"><c:out value="${item.evaluateResult }" /></td>
	        </tr>
       </c:forEach>
      </table>
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="fontbot" bgcolor="#e6f0f8">    
		<tr>
			<td align="left"  style="padding-left: 10px;"> 
				<a href="javascript:deleteSelects();" onfocus="this.blur()"><img src="<%=request.getContextPath()%>/<fmt:message key='CommonImagePath' />gif-08.gif" width="53" height="22" border="0" /></a>
			</td>
			<td align="right">
        		<jsp:include page="../../common/pagination.jsp"></jsp:include>
			</td>
		</tr>
	  </table>
	</td>
	<td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_09.gif"><img height="1" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />spacer.gif" width="1" /></td>
    </tr>
    <tr>
        <td><img height="22" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_10.gif" width="7" /></td>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_11.gif">&nbsp;</td>
        <td><img height="22" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_12.gif" width="8" /></td>
      </tr>
    </tbody>
  </table>
</form>
</body>
</html>

